#pragma once

#include "sdl/sdl.h"
#include "vector.h"
#include "player.h"
#include "board.h"

class Game
{
private:
	int numPlayers;
	int activePlayer;
	// player
	Player * p;
	
	// color board
	Board b;

	static const int MENU = 0;
	static const int GAME = 1;
	int gameState;

	void menuInput(SDL_Event & e);
	void gameInput(SDL_Event & e);
	void initGame(int const & a_numPlayers);
	bool selectPlayer(int const & x, int const & y);
	bool mouseOverPlayer(int const & x, int const & y);
	int whichPlayerIsWithin(int const & x, int const & y, int radius);
public:
	Game();
	void draw(SDL_Surface * screen);
	void update(int ms);
	void input(SDL_Event & e);
	~Game();
};